package com.situ.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.situ.domain.entity.TOrder;
import com.situ.domain.entity.TOrderExample;
import com.situ.domain.entity.TUser;
import com.situ.domain.vo.OrderAndItemVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TOrderMapper extends BaseMapper<TOrder> {
    long countByExample(TOrderExample example);

    int deleteByExample(TOrderExample example);

    int deleteByPrimaryKey(String oid);

    int insert(TOrder record);

    int insertSelective(TOrder record);

    List<TOrder> selectByExample(TOrderExample example);

    TOrder selectByPrimaryKey(String oid);

    int updateByExampleSelective(@Param("record") TOrder record, @Param("example") TOrderExample example);

    int updateByExample(@Param("record") TOrder record, @Param("example") TOrderExample example);

    int updateByPrimaryKeySelective(TOrder record);

    int updateByPrimaryKey(TOrder record);

    TUser getUserByOrderId(String oid);

    List<OrderAndItemVO> getOrderListByUserState(Integer state,Integer uid);
}